#基础镜像
FROM adoptopenjdk/openjdk8-openj9:alpine-slim
#作者
LABEL maintainer="1131201834@qq.com"
#系统编码
ENV LANG en_US.UTF-8

#声明一个挂载点,容器内此路径对应宿主机的某个文件夹
VOLUME /tmp
#应用构建成功后的jar包被复制到镜像内,名字也改成了app.jar
ADD  target/test-docker-boot-0.1.7-SNAPSHOT.jar app.jar
#镜像暴露8722端口
EXPOSE 8722
#启动容器时的进程
ENTRYPOINT [ "java", "-Xmx2G", "-Xms200M", "-Xshareclasses", "-Xquickstart","-Duser.timezone=GMT+08", "-jar", "/app.jar" ]